# all: main.exe
# main.exe:bin/client/split.o bin/client/create_dict_index.o bin/client/dict_test.o bin/client/edit_distance.o 
# 	g++ bin/client/split.o bin/client/create_dict_index.o bin/client/dict_test.o bin/client/edit_distance.o  -o main.exe -g

# bin/client/split.o:src/client/create_dict_index/split.cpp
# 	g++ -c src/client/create_dict_index/split.cpp -o bin/client/split.o -g -I include

# bin/client/create_dict_index.o:src/client/create_dict_index/create_dict_index.cpp
# 	g++ -c src/client/create_dict_index/create_dict_index.cpp -o bin/client/create_dict_index.o -g -I include

# bin/client/dict_test.o:test/dict_test.cpp
# 	g++ -c test/dict_test.cpp -o bin/client/dict_test.o -g -I include

# bin/client/edit_distance.o:src/client/create_dict_index/edit_distance.cpp
# 	g++ -c src/client/create_dict_index/edit_distance.cpp -o bin/client/edit_distance.o -g -I include



# all: main.exe
# main.exe:bin/client/Configuration.o bin/client/dict_test.o bin/client/PageLibPreprocessor.o bin/client/WebPage.o bin/client/tinyxml2.o bin/client/split.o
# 	g++ bin/client/Configuration.o bin/client/dict_test.o bin/client/PageLibPreprocessor.o bin/client/WebPage.o bin/client/tinyxml2.o bin/client/split.o -o main.exe -g

# bin/client/Configuration.o:src/client/Configuration.cpp
# 	g++ -c src/client/Configuration.cpp -o bin/client/Configuration.o -g -I include

# bin/client/dict_test.o:test/dict_test.cpp
# 	g++ -c test/dict_test.cpp -o bin/client/dict_test.o -g -I include

# bin/client/PageLibPreprocessor.o:src/client/create_weblib/PageLibPreprocessor.cpp
# 	g++ -c src/client/create_weblib/PageLibPreprocessor.cpp -o bin/client/PageLibPreprocessor.o -g -I include

# bin/client/WebPage.o:src/client/create_weblib/WebPage.cpp
# 	g++ -c src/client/create_weblib/WebPage.cpp -o bin/client/WebPage.o -g -I include

# bin/client/tinyxml2.o:include/tinyxml/tinyxml2.cpp
# 	g++ -c include/tinyxml/tinyxml2.cpp -o bin/client/tinyxml2.o -g -I include

# bin/client/split.o:src/client/create_dict_index/split.cpp
# 	g++ -c src/client/create_dict_index/split.cpp -o bin/client/split.o -g -I include

all:main.exe
main.exe:bin/server/serverTest.o bin/client/Configuration.o bin/server/Dictionary.o bin/server/KeyRecommander.o bin/server/edit_distance.o
	g++ bin/server/*.o bin/client/Configuration.o -o main.exe -g
bin/server/serverTest.o:test/serverTest.cpp
	g++ -c test/serverTest.cpp -o bin/server/serverTest.o -g -I include
bin/client/Configuration.o:src/client/Configuration.cpp
	g++ -c src/client/Configuration.cpp -o bin/client/Configuration.o -g -I include
bin/server/Dictionary.o:src/server/Dictionary.cpp
	g++ -c src/server/Dictionary.cpp -o bin/server/Dictionary.o -g -I include
bin/server/KeyRecommander.o:src/server/KeyRecommander.cpp
	g++ -c src/server/KeyRecommander.cpp -o bin/server/KeyRecommander.o -g -I include
bin/server/edit_distance.o:src/server/edit_distance.cpp
	g++ -c src/server/edit_distance.cpp -o bin/server/edit_distance.o -g -I include

clean:
	rm -rf bin/client/*.o bin/server/*.o